from scrpit.yun_write import Text_login
from tools.HTMLTestRunner import HTMLTestRunner
import unittest

# 测试套件
sutie = unittest.TestSuite()

sutie.addTest(Text_login('text_01'))

sutie.addTest(Text_login('text_02'))

sutie.addTest(Text_login('text_03'))

sutie.addTest(unittest.makeSuite(Text_login))


import datetime
from app import BSEE

html_date = datetime.datetime.now().strftime("%Y-%m-%d-%H-%M-%S")

dates = BSEE+ "/report/login-%s.html" % html_date

f = open(dates, 'wb')

runner = HTMLTestRunner(stream=f, description='Chrome 浏览器', title='测试报告')
# 执行测试用例
runner.run(sutie)